﻿using System;
using UnityEngine;

// Token: 0x02000030 RID: 48
public class ZombieDecay : MonoBehaviour
{
	// Token: 0x060000CF RID: 207 RVA: 0x00010A72 File Offset: 0x0000EC72
	private void Start()
	{
		this.body = base.GetComponent<BodyScript>();
	}

	// Token: 0x060000D0 RID: 208 RVA: 0x00010A80 File Offset: 0x0000EC80
	private void Update()
	{
		this.body.health -= Time.deltaTime;
		if (!this.body.alive && !this.body.GetComponent<DissapearHandler>())
		{
			this.body.gameObject.AddComponent<DissapearHandler>();
		}
	}

	// Token: 0x040001C8 RID: 456
	private BodyScript body;
}
